package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;

/**
 * Created by rize on 2019/7/5.
 */
@Data
@TableName("unimall_order_refund_sku")
public class RefundOrderSkuDO extends SuperDO {

    @TableField("sku_id")
    private Long skuId;


    @TableField("bar_code")
    private String barCode;


    /**
     * 冗余SPUID方便评论
     */
    @TableField("spu_id")
    private Long spuId;
    /**
     * 订单表id
     */
    @TableField("order_id")
    private Long orderId;
    /**
     * 订单商品表id
     */
    @TableField("order_sku_id")
    private Long orderSkuId;

    /**
     * 冗余，方便技术查库
     */
    @TableField("order_no")
    private String orderNo;
   /**
     * SPU 标题
     */
    @TableField("spu_title")
    private String spuTitle;

    /**
     * SKU 标题， 即小规格名称
     */
    private String title;

    private Float num;

    @TableField("original_price")
    private Integer originalPrice;

    /**
     * 单价
     */
    private Integer price;

    /**
     * 暂时先不考虑 统一当成营销费用
     * 如果有满减等内容折算后的单品价格
     */
    @TableField("actual_price")
    private Integer actualPrice;


    @TableField("refund_reason")
    private String refundReason;

    @TableField("admin_mono")
    private String adminMono;
    @TableField("admin_mono_level")
    private Integer adminMonoLevel;


    @TableField("refund_price")
    private Integer refundPrice;

    /**
     * 退的数量
     */
    @TableField("refund_num")
    private Float refundNum;


    @TableField("refund_order_no")
    private String refundOrderNo;

    @TableField("refund_status")
    private Integer status;

    /**
     * 退款使用图片集
      */
    @TableField("refund_pics")
    private Integer refundPics;

    @TableField("refund_time")
    private Date refundTime;
    /**
     * SKU 或 SPU主图 （优先使用SKU图）
     */
    private String img;

    //单位
    private String unit;

}
